package hunterxhunter.greedisland.entities.menu;

import hunterxhunter.greedisland.GreedIslandGame;
import java.awt.Rectangle;
import framework.eea.StateBasedGame;
import framework.eea.entity.Entity;
import framework.eea.event.Component;
import framework.eea.gui.Graphics;
import framework.eea.gui.JFrameGameContainer;

/**
 *
 * @author Markus Schr&ouml;der
 */
public class GameplayMenuEntity extends Entity {

    private BookEntity book;
    
    public GameplayMenuEntity() {
        super("GameplayMenuEntity");
        
        book = new BookEntity("Book");
        setVisible(false);
    }
    
    @Override
    public final void setVisible(boolean visible) {
        super.setVisible(visible);
        book.setVisible(visible);
    }
    
    @Override
    public void render(JFrameGameContainer gc, StateBasedGame sb, Graphics g) {
        book.render(gc, sb, g);
    }
    
    @Override
    public void update(JFrameGameContainer gc, StateBasedGame sb, int delta) {
        super.update(gc, sb, delta);
        book.update(gc, sb, delta);
    }
}
